#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <QPropertyAnimation>

namespace Ui {
class BtForm;
}

class BtForm : public QWidget
{
    Q_OBJECT

public:
    explicit BtForm(QWidget *parent = nullptr);
    ~BtForm();

    void setIconAndText(const QString& btIcon, const QString& btText, int pageId);

    void mousePressEvent(QMouseEvent* event);

    int getPageId();

    void setOriginalStyleSheet();

    void showAnimation();

    void hideAnimation();

    void highLighting();

signals:
    void changeIndex(int id);

private:
    Ui::BtForm *ui;
    int pageId;
    QPropertyAnimation* line1Animation;
    QPropertyAnimation* line2Animation;
    QPropertyAnimation* line3Animation;
    QPropertyAnimation* line4Animation;
};

#endif // BTFORM_H
